How to ignore the condition that user did not pass in SQLITE

join shbcf.ru